﻿using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System;
using System.Linq;
using System.Text;

namespace ScormModel
{
    [Serializable()]
    public class NavigationInterface
    {
        [NonSerialized]
        private XmlNode _navigationInterfaceContent;
        private List<string> _listHideLMSUI;
        [XmlElement("hideLMSUI", Namespace = "http://www.adlnet.org/xsd/adlnav_v1p3")]
        public List<string> ListHideLMSUI
        {
            get { return this._listHideLMSUI; }
            set { this._listHideLMSUI = value; }
        }
         [XmlIgnoreAttribute]
        public XmlNode NavigationInterfaceContent
        {
            get { return this._navigationInterfaceContent; }
            set { this._navigationInterfaceContent = value; }
        }
         public void buildNavigationInterface()
         {
             _listHideLMSUI = new List<string>();
             XmlNodeList childList = _navigationInterfaceContent.ChildNodes;
             for (int i = 0; i < childList.Count; i++)
             {
                 if (childList[i].Name == "adlnav:hideLMSUI")
                 {
                     _listHideLMSUI.Add(childList[i].InnerText);
                 }
             }
         }

    }
}
